<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>opennars: aruntime/src/main/java/nars/entity/Stamp.java Source File</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtreedata.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">opennars
   &#160;<span id="projectnumber">1.5.5</span>
   </div>
   <div id="projectbrief">1.5-ish</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="../../index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="../../pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="../../namespaces.html"><span>Packages</span></a></li>
      <li><a href="../../annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="../../files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="../../search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="../../files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('d8/d4f/Stamp_8java_source.html','../../');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">Stamp.java</div>  </div>
</div><!--header-->
<div class="contents">
<a href="../../d8/d4f/Stamp_8java.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Stamp.java</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * Copyright (C) 2008  Pei Wang</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * This file is part of Open-NARS.</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> * Open-NARS is free software; you can redistribute it and/or modify</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * the Free Software Foundation, either version 2 of the License, or</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * (at your option) any later version.</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> * Open-NARS is distributed in the hope that it will be useful,</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> * GNU General Public License for more details.</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> * along with Open-NARS.  If not, see &lt;http://www.gnu.org/licenses/&gt;.</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="keyword">package </span>nars.entity;</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="keyword">import</span> java.util.*;</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="keyword">import</span> <a class="code" href="../../d7/d81/namespacenars.html">nars</a>.<a class="code" href="../../db/d64/namespacenars_1_1io.html">io</a>.<a class="code" href="../../dc/d71/classnars_1_1io_1_1Symbols.html">Symbols</a>;</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="keyword">import</span> <a class="code" href="../../d7/d81/namespacenars.html">nars</a>.<a class="code" href="../../de/ddc/namespacenars_1_1storage.html">storage</a>.<a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory.html">Memory</a>;</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;</div>
<div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="../../d1/d1e/classnars_1_1entity_1_1Stamp.html">   35</a></span>&#160;<span class="keyword">public</span> <span class="keyword">class </span><a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp.html">Stamp</a> <span class="keyword">implements</span> Cloneable {</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;</div>
<div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_a2ba0e45324b9c8723a598e825fbcb919.html#a2ba0e45324b9c8723a598e825fbcb919">   40</a></span>&#160;    <span class="keyword">private</span> <span class="keyword">static</span> <span class="keywordtype">long</span> <a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_a2ba0e45324b9c8723a598e825fbcb919.html#a2ba0e45324b9c8723a598e825fbcb919">currentSerial</a> = 0;</div>
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_a494ae48f7f54badc63ce355b7bfe2c1b.html#a494ae48f7f54badc63ce355b7bfe2c1b">   42</a></span>&#160;    <span class="keyword">private</span> <span class="keywordtype">long</span>[] <a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_a494ae48f7f54badc63ce355b7bfe2c1b.html#a494ae48f7f54badc63ce355b7bfe2c1b">evidentialBase</a>;</div>
<div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_a153d2eafa2da60a2c768525f84e9169c.html#a153d2eafa2da60a2c768525f84e9169c">   44</a></span>&#160;    <span class="keyword">private</span> <span class="keywordtype">int</span> <a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_a153d2eafa2da60a2c768525f84e9169c.html#a153d2eafa2da60a2c768525f84e9169c">baseLength</a>;</div>
<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_a55c3c692098386d513289a6f3787f590.html#a55c3c692098386d513289a6f3787f590">   46</a></span>&#160;    <span class="keyword">private</span> <span class="keywordtype">long</span> <a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_a55c3c692098386d513289a6f3787f590.html#a55c3c692098386d513289a6f3787f590">creationTime</a>;</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;</div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_a959f21fb20f72cfd277d994332e862c3.html#a959f21fb20f72cfd277d994332e862c3">   52</a></span>&#160;    <span class="keyword">public</span> <a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_a959f21fb20f72cfd277d994332e862c3.html#a959f21fb20f72cfd277d994332e862c3">Stamp</a>(<span class="keywordtype">long</span> time) {</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;        currentSerial++;</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;        baseLength = 1;</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;        evidentialBase = <span class="keyword">new</span> <span class="keywordtype">long</span>[<a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_a153d2eafa2da60a2c768525f84e9169c.html#a153d2eafa2da60a2c768525f84e9169c">baseLength</a>];</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;        evidentialBase[0] = <a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_a2ba0e45324b9c8723a598e825fbcb919.html#a2ba0e45324b9c8723a598e825fbcb919">currentSerial</a>;</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;        creationTime = time;</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    }</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;</div>
<div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_ace10b17e33839430469efd8af6da5135.html#ace10b17e33839430469efd8af6da5135">   64</a></span>&#160;    <span class="keyword">private</span> <a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_ace10b17e33839430469efd8af6da5135.html#ace10b17e33839430469efd8af6da5135">Stamp</a>(<a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp.html">Stamp</a> old) {</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;        baseLength = old.<a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_a316ac8d258c291cb941e50f17c2dc0eb.html#a316ac8d258c291cb941e50f17c2dc0eb">length</a>();</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;        evidentialBase = old.<a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_af8d5b064c4fd2ffe2068a6a7caf6ade2.html#af8d5b064c4fd2ffe2068a6a7caf6ade2">getBase</a>();</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;        creationTime = old.<a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_acb0b161e2d2fb0cbfb33b44ec2a29075.html#acb0b161e2d2fb0cbfb33b44ec2a29075">getCreationTime</a>();</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    }</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;</div>
<div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_ad6aa0763a0a78acae813ba456f533ad7.html#ad6aa0763a0a78acae813ba456f533ad7">   77</a></span>&#160;    <span class="keyword">public</span> <a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_ad6aa0763a0a78acae813ba456f533ad7.html#ad6aa0763a0a78acae813ba456f533ad7">Stamp</a>(<a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp.html">Stamp</a> old, <span class="keywordtype">long</span> time) {</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;        baseLength = old.<a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_a316ac8d258c291cb941e50f17c2dc0eb.html#a316ac8d258c291cb941e50f17c2dc0eb">length</a>();</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;        evidentialBase = old.<a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_af8d5b064c4fd2ffe2068a6a7caf6ade2.html#af8d5b064c4fd2ffe2068a6a7caf6ade2">getBase</a>();</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;        creationTime = time;</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    }</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;</div>
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_ae51a072ee3f452580f4421f6dc6643ab.html#ae51a072ee3f452580f4421f6dc6643ab">   89</a></span>&#160;    <span class="keyword">private</span> <a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_ae51a072ee3f452580f4421f6dc6643ab.html#ae51a072ee3f452580f4421f6dc6643ab">Stamp</a>(<a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp.html">Stamp</a> first, <a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp.html">Stamp</a> second, <span class="keywordtype">long</span> time) {</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;        <span class="keywordtype">int</span> i1, i2, j;</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;        i1 = i2 = j = 0;</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;        baseLength = Math.min(first.<a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_a316ac8d258c291cb941e50f17c2dc0eb.html#a316ac8d258c291cb941e50f17c2dc0eb">length</a>() + second.<a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_a316ac8d258c291cb941e50f17c2dc0eb.html#a316ac8d258c291cb941e50f17c2dc0eb">length</a>(), <a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory.html">Memory</a>.<a class="code" href="../../da/d3b/classnars_1_1storage_1_1Memory_1_1Parameters.html">Parameters</a>.<a class="code" href="../../da/d3b/classnars_1_1storage_1_1Memory_1_1Parameters_a00681c48812b09ea469bc16bee7b1e5f.html#a00681c48812b09ea469bc16bee7b1e5f">MAXIMUM_STAMP_LENGTH</a>);</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;        evidentialBase = <span class="keyword">new</span> <span class="keywordtype">long</span>[<a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_a153d2eafa2da60a2c768525f84e9169c.html#a153d2eafa2da60a2c768525f84e9169c">baseLength</a>];</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;        <span class="keywordflow">while</span> (i2 &lt; second.<a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_a316ac8d258c291cb941e50f17c2dc0eb.html#a316ac8d258c291cb941e50f17c2dc0eb">length</a>() &amp;&amp; j &lt; <a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_a153d2eafa2da60a2c768525f84e9169c.html#a153d2eafa2da60a2c768525f84e9169c">baseLength</a>) {</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;            evidentialBase[j] = first.<a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_a546d6921dc3e1e4a9d1b80bf7f0356b4.html#a546d6921dc3e1e4a9d1b80bf7f0356b4">get</a>(i1);</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;            i1++;</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;            j++;</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;            evidentialBase[j] = second.<a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_a546d6921dc3e1e4a9d1b80bf7f0356b4.html#a546d6921dc3e1e4a9d1b80bf7f0356b4">get</a>(i2);</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;            i2++;</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;            j++;</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;        }</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;        <span class="keywordflow">while</span> (i1 &lt; first.<a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_a316ac8d258c291cb941e50f17c2dc0eb.html#a316ac8d258c291cb941e50f17c2dc0eb">length</a>() &amp;&amp; j &lt; <a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_a153d2eafa2da60a2c768525f84e9169c.html#a153d2eafa2da60a2c768525f84e9169c">baseLength</a>) {</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;            evidentialBase[j] = first.<a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_a546d6921dc3e1e4a9d1b80bf7f0356b4.html#a546d6921dc3e1e4a9d1b80bf7f0356b4">get</a>(i1);</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;            i1++;</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;            j++;</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;        }</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;        creationTime = time;</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;    }</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;</div>
<div class="line"><a name="l00119"></a><span class="lineno"><a class="line" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_a47f0e631d97f15a4b6520847c2c4d62a.html#a47f0e631d97f15a4b6520847c2c4d62a">  119</a></span>&#160;    <span class="keyword">public</span> <span class="keyword">static</span> <a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp.html">Stamp</a> <a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_a47f0e631d97f15a4b6520847c2c4d62a.html#a47f0e631d97f15a4b6520847c2c4d62a">make</a>(<a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp.html">Stamp</a> first, <a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp.html">Stamp</a> second, <span class="keywordtype">long</span> time) {</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; first.<a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_a316ac8d258c291cb941e50f17c2dc0eb.html#a316ac8d258c291cb941e50f17c2dc0eb">length</a>(); i++) {</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;            <span class="keywordflow">for</span> (<span class="keywordtype">int</span> j = 0; j &lt; second.<a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_a316ac8d258c291cb941e50f17c2dc0eb.html#a316ac8d258c291cb941e50f17c2dc0eb">length</a>(); j++) {</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;                <span class="keywordflow">if</span> (first.<a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_a546d6921dc3e1e4a9d1b80bf7f0356b4.html#a546d6921dc3e1e4a9d1b80bf7f0356b4">get</a>(i) == second.<a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_a546d6921dc3e1e4a9d1b80bf7f0356b4.html#a546d6921dc3e1e4a9d1b80bf7f0356b4">get</a>(j)) {</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;                    <span class="keywordflow">return</span> null;</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;                }</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;            }</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;        }</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;        <span class="keywordflow">if</span> (first.<a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_a316ac8d258c291cb941e50f17c2dc0eb.html#a316ac8d258c291cb941e50f17c2dc0eb">length</a>() &gt; second.<a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_a316ac8d258c291cb941e50f17c2dc0eb.html#a316ac8d258c291cb941e50f17c2dc0eb">length</a>()) {</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;            <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_a959f21fb20f72cfd277d994332e862c3.html#a959f21fb20f72cfd277d994332e862c3">Stamp</a>(first, second, time);</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;            <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_a959f21fb20f72cfd277d994332e862c3.html#a959f21fb20f72cfd277d994332e862c3">Stamp</a>(second, first, time);</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;        }</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;    }</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;    @Override</div>
<div class="line"><a name="l00139"></a><span class="lineno"><a class="line" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_a034905573fe14fb73ba09bfa360eb608.html#a034905573fe14fb73ba09bfa360eb608">  139</a></span>&#160;    <span class="keyword">public</span> Object <a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_a034905573fe14fb73ba09bfa360eb608.html#a034905573fe14fb73ba09bfa360eb608">clone</a>() {</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_a959f21fb20f72cfd277d994332e862c3.html#a959f21fb20f72cfd277d994332e862c3">Stamp</a>(<span class="keyword">this</span>);</div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;    }</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;</div>
<div class="line"><a name="l00146"></a><span class="lineno"><a class="line" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_a104d2fa1a93819a00e5a1221710128c0.html#a104d2fa1a93819a00e5a1221710128c0">  146</a></span>&#160;    <span class="keyword">public</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_a104d2fa1a93819a00e5a1221710128c0.html#a104d2fa1a93819a00e5a1221710128c0">init</a>() {</div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;        currentSerial = 0;</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;    }</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;</div>
<div class="line"><a name="l00154"></a><span class="lineno"><a class="line" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_a316ac8d258c291cb941e50f17c2dc0eb.html#a316ac8d258c291cb941e50f17c2dc0eb">  154</a></span>&#160;    <span class="keyword">public</span> <span class="keywordtype">int</span> <a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_a316ac8d258c291cb941e50f17c2dc0eb.html#a316ac8d258c291cb941e50f17c2dc0eb">length</a>() {</div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_a153d2eafa2da60a2c768525f84e9169c.html#a153d2eafa2da60a2c768525f84e9169c">baseLength</a>;</div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;    }</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;</div>
<div class="line"><a name="l00163"></a><span class="lineno"><a class="line" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_a546d6921dc3e1e4a9d1b80bf7f0356b4.html#a546d6921dc3e1e4a9d1b80bf7f0356b4">  163</a></span>&#160;    <span class="keywordtype">long</span> <span class="keyword">get</span>(<span class="keywordtype">int</span> i) {</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;        <span class="keywordflow">return</span> evidentialBase[i];</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;    }</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;</div>
<div class="line"><a name="l00171"></a><span class="lineno"><a class="line" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_af8d5b064c4fd2ffe2068a6a7caf6ade2.html#af8d5b064c4fd2ffe2068a6a7caf6ade2">  171</a></span>&#160;    <span class="keyword">private</span> <span class="keywordtype">long</span>[] <a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_af8d5b064c4fd2ffe2068a6a7caf6ade2.html#af8d5b064c4fd2ffe2068a6a7caf6ade2">getBase</a>() {</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_a494ae48f7f54badc63ce355b7bfe2c1b.html#a494ae48f7f54badc63ce355b7bfe2c1b">evidentialBase</a>;</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;    }</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;</div>
<div class="line"><a name="l00179"></a><span class="lineno"><a class="line" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_a7b5d3afaab9fc48e2d4d571b8508970d.html#a7b5d3afaab9fc48e2d4d571b8508970d">  179</a></span>&#160;    <span class="keyword">private</span> Collection&lt;Long&gt; <a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_a7b5d3afaab9fc48e2d4d571b8508970d.html#a7b5d3afaab9fc48e2d4d571b8508970d">toSet</a>() {</div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;        Set&lt;Long&gt; set = <span class="keyword">new</span> TreeSet&lt;Long&gt;();</div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; <a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_a153d2eafa2da60a2c768525f84e9169c.html#a153d2eafa2da60a2c768525f84e9169c">baseLength</a>; i++) {</div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;            set.add(evidentialBase[i]);</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;        }</div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;        <span class="keywordflow">return</span> set;</div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;    }</div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;</div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;    @Override</div>
<div class="line"><a name="l00193"></a><span class="lineno"><a class="line" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_adb33cdf9f13e1a919f7220cb622e7446.html#adb33cdf9f13e1a919f7220cb622e7446">  193</a></span>&#160;    <span class="keyword">public</span> <span class="keywordtype">boolean</span> <a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_adb33cdf9f13e1a919f7220cb622e7446.html#adb33cdf9f13e1a919f7220cb622e7446">equals</a>(Object that) {</div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;        <span class="keywordflow">if</span> (!(that instanceof <a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp.html">Stamp</a>)) {</div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;            <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;        }</div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;        Collection&lt;Long&gt; set1 = <a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_a7b5d3afaab9fc48e2d4d571b8508970d.html#a7b5d3afaab9fc48e2d4d571b8508970d">toSet</a>();</div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;        Collection&lt;Long&gt; set2 = ((<a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_a959f21fb20f72cfd277d994332e862c3.html#a959f21fb20f72cfd277d994332e862c3">Stamp</a>) that).toSet();</div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;        <span class="keywordflow">return</span> (set1.containsAll(set2) &amp;&amp; set2.containsAll(set1));</div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;    }</div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;</div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;    @Override</div>
<div class="line"><a name="l00207"></a><span class="lineno"><a class="line" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_ab52baff17f87c3737f0bc0216f66ac3f.html#ab52baff17f87c3737f0bc0216f66ac3f">  207</a></span>&#160;    <span class="keyword">public</span> <span class="keywordtype">int</span> <a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_ab52baff17f87c3737f0bc0216f66ac3f.html#ab52baff17f87c3737f0bc0216f66ac3f">hashCode</a>() {</div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_ad1aee19cfc0bb8ca9232bad251f74ffc.html#ad1aee19cfc0bb8ca9232bad251f74ffc">toString</a>().hashCode();</div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;    }</div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;</div>
<div class="line"><a name="l00215"></a><span class="lineno"><a class="line" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_acb0b161e2d2fb0cbfb33b44ec2a29075.html#acb0b161e2d2fb0cbfb33b44ec2a29075">  215</a></span>&#160;    <span class="keyword">public</span> <span class="keywordtype">long</span> <a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_acb0b161e2d2fb0cbfb33b44ec2a29075.html#acb0b161e2d2fb0cbfb33b44ec2a29075">getCreationTime</a>() {</div>
<div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_a55c3c692098386d513289a6f3787f590.html#a55c3c692098386d513289a6f3787f590">creationTime</a>;</div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;    }</div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;</div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;    @Override</div>
<div class="line"><a name="l00225"></a><span class="lineno"><a class="line" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_ad1aee19cfc0bb8ca9232bad251f74ffc.html#ad1aee19cfc0bb8ca9232bad251f74ffc">  225</a></span>&#160;    <span class="keyword">public</span> String <a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_ad1aee19cfc0bb8ca9232bad251f74ffc.html#ad1aee19cfc0bb8ca9232bad251f74ffc">toString</a>() {</div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;        StringBuffer buffer = <span class="keyword">new</span> StringBuffer(<span class="stringliteral">&quot; &quot;</span> + <a class="code" href="../../dc/d71/classnars_1_1io_1_1Symbols.html">Symbols</a>.<a class="code" href="../../dc/d71/classnars_1_1io_1_1Symbols_a8543cf41a20f45b3e2ece8b7969ed15b.html#a8543cf41a20f45b3e2ece8b7969ed15b">STAMP_OPENER</a> + creationTime);</div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;        buffer.append(<span class="stringliteral">&quot; &quot;</span> + <a class="code" href="../../dc/d71/classnars_1_1io_1_1Symbols.html">Symbols</a>.<a class="code" href="../../dc/d71/classnars_1_1io_1_1Symbols_a1e0854a68bd5d3c6a4162e53e77a2c8e.html#a1e0854a68bd5d3c6a4162e53e77a2c8e">STAMP_STARTER</a> + <span class="stringliteral">&quot; &quot;</span>);</div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; <a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_a153d2eafa2da60a2c768525f84e9169c.html#a153d2eafa2da60a2c768525f84e9169c">baseLength</a>; i++) {</div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;            buffer.append(Long.toString(evidentialBase[i]));</div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;            <span class="keywordflow">if</span> (i &lt; (baseLength - 1)) {</div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;                buffer.append(<a class="code" href="../../dc/d71/classnars_1_1io_1_1Symbols.html">Symbols</a>.<a class="code" href="../../dc/d71/classnars_1_1io_1_1Symbols_a6cad38feaf42bcf66200d6f94d6b64d9.html#a6cad38feaf42bcf66200d6f94d6b64d9">STAMP_SEPARATOR</a>);</div>
<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;            } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;                buffer.append(<a class="code" href="../../dc/d71/classnars_1_1io_1_1Symbols.html">Symbols</a>.<a class="code" href="../../dc/d71/classnars_1_1io_1_1Symbols_a773509e7bc6cbf7b365c90fc2e48dc6b.html#a773509e7bc6cbf7b365c90fc2e48dc6b">STAMP_CLOSER</a> + <span class="stringliteral">&quot; &quot;</span>);</div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;            }</div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;        }</div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;        <span class="keywordflow">return</span> buffer.toString();</div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;    }</div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;}</div>
<div class="ttc" id="classnars_1_1entity_1_1Stamp_a2ba0e45324b9c8723a598e825fbcb919_html_a2ba0e45324b9c8723a598e825fbcb919"><div class="ttname"><a href="../../d1/d1e/classnars_1_1entity_1_1Stamp_a2ba0e45324b9c8723a598e825fbcb919.html#a2ba0e45324b9c8723a598e825fbcb919">nars.entity.Stamp.currentSerial</a></div><div class="ttdeci">static long currentSerial</div><div class="ttdoc">serial number, for the whole system TODO : should it really be static? or a Stamp be a field in Memor...</div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d4f/Stamp_8java_source.html#l00040">Stamp.java:40</a></div></div>
<div class="ttc" id="namespacenars_1_1io_html"><div class="ttname"><a href="../../db/d64/namespacenars_1_1io.html">nars.io</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d3/d26/ExperienceReader_8java_source.html#l00021">ExperienceReader.java:21</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Stamp_a316ac8d258c291cb941e50f17c2dc0eb_html_a316ac8d258c291cb941e50f17c2dc0eb"><div class="ttname"><a href="../../d1/d1e/classnars_1_1entity_1_1Stamp_a316ac8d258c291cb941e50f17c2dc0eb.html#a316ac8d258c291cb941e50f17c2dc0eb">nars.entity.Stamp.length</a></div><div class="ttdeci">int length()</div><div class="ttdoc">Return the baseLength of the evidentialBase. </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d4f/Stamp_8java_source.html#l00154">Stamp.java:154</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Stamp_a959f21fb20f72cfd277d994332e862c3_html_a959f21fb20f72cfd277d994332e862c3"><div class="ttname"><a href="../../d1/d1e/classnars_1_1entity_1_1Stamp_a959f21fb20f72cfd277d994332e862c3.html#a959f21fb20f72cfd277d994332e862c3">nars.entity.Stamp.Stamp</a></div><div class="ttdeci">Stamp(long time)</div><div class="ttdoc">Generate a new stamp, with a new serial number, for a new Task. </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d4f/Stamp_8java_source.html#l00052">Stamp.java:52</a></div></div>
<div class="ttc" id="classnars_1_1storage_1_1Memory_html"><div class="ttname"><a href="../../d8/df4/classnars_1_1storage_1_1Memory.html">nars.storage.Memory</a></div><div class="ttdoc">The memory of the system. </div><div class="ttdef"><b>Definition:</b> <a href="../../db/d0c/Memory_8java_source.html#l00051">Memory.java:51</a></div></div>
<div class="ttc" id="classnars_1_1io_1_1Symbols_a773509e7bc6cbf7b365c90fc2e48dc6b_html_a773509e7bc6cbf7b365c90fc2e48dc6b"><div class="ttname"><a href="../../dc/d71/classnars_1_1io_1_1Symbols_a773509e7bc6cbf7b365c90fc2e48dc6b.html#a773509e7bc6cbf7b365c90fc2e48dc6b">nars.io.Symbols.STAMP_CLOSER</a></div><div class="ttdeci">static final char STAMP_CLOSER</div><div class="ttdef"><b>Definition:</b> <a href="../../d5/da0/Symbols_8java_source.html#l00088">Symbols.java:88</a></div></div>
<div class="ttc" id="classnars_1_1storage_1_1Memory_1_1Parameters_html"><div class="ttname"><a href="../../da/d3b/classnars_1_1storage_1_1Memory_1_1Parameters.html">nars.storage.Memory.Parameters</a></div><div class="ttdoc">Collected system parameters. </div><div class="ttdef"><b>Definition:</b> <a href="../../db/d0c/Memory_8java_source.html#l01069">Memory.java:1069</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Stamp_af8d5b064c4fd2ffe2068a6a7caf6ade2_html_af8d5b064c4fd2ffe2068a6a7caf6ade2"><div class="ttname"><a href="../../d1/d1e/classnars_1_1entity_1_1Stamp_af8d5b064c4fd2ffe2068a6a7caf6ade2.html#af8d5b064c4fd2ffe2068a6a7caf6ade2">nars.entity.Stamp.getBase</a></div><div class="ttdeci">long[] getBase()</div><div class="ttdoc">Get the evidentialBase, called in this class only. </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d4f/Stamp_8java_source.html#l00171">Stamp.java:171</a></div></div>
<div class="ttc" id="classnars_1_1io_1_1Symbols_a8543cf41a20f45b3e2ece8b7969ed15b_html_a8543cf41a20f45b3e2ece8b7969ed15b"><div class="ttname"><a href="../../dc/d71/classnars_1_1io_1_1Symbols_a8543cf41a20f45b3e2ece8b7969ed15b.html#a8543cf41a20f45b3e2ece8b7969ed15b">nars.io.Symbols.STAMP_OPENER</a></div><div class="ttdeci">static final char STAMP_OPENER</div><div class="ttdef"><b>Definition:</b> <a href="../../d5/da0/Symbols_8java_source.html#l00087">Symbols.java:87</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Stamp_ab52baff17f87c3737f0bc0216f66ac3f_html_ab52baff17f87c3737f0bc0216f66ac3f"><div class="ttname"><a href="../../d1/d1e/classnars_1_1entity_1_1Stamp_ab52baff17f87c3737f0bc0216f66ac3f.html#ab52baff17f87c3737f0bc0216f66ac3f">nars.entity.Stamp.hashCode</a></div><div class="ttdeci">int hashCode()</div><div class="ttdoc">The hash code of Stamp. </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d4f/Stamp_8java_source.html#l00207">Stamp.java:207</a></div></div>
<div class="ttc" id="classnars_1_1storage_1_1Memory_1_1Parameters_a00681c48812b09ea469bc16bee7b1e5f_html_a00681c48812b09ea469bc16bee7b1e5f"><div class="ttname"><a href="../../da/d3b/classnars_1_1storage_1_1Memory_1_1Parameters_a00681c48812b09ea469bc16bee7b1e5f.html#a00681c48812b09ea469bc16bee7b1e5f">nars.storage.Memory.Parameters.MAXIMUM_STAMP_LENGTH</a></div><div class="ttdeci">static final int MAXIMUM_STAMP_LENGTH</div><div class="ttdoc">Maximum length of Stamp, a power of 2. </div><div class="ttdef"><b>Definition:</b> <a href="../../db/d0c/Memory_8java_source.html#l01137">Memory.java:1137</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Stamp_a47f0e631d97f15a4b6520847c2c4d62a_html_a47f0e631d97f15a4b6520847c2c4d62a"><div class="ttname"><a href="../../d1/d1e/classnars_1_1entity_1_1Stamp_a47f0e631d97f15a4b6520847c2c4d62a.html#a47f0e631d97f15a4b6520847c2c4d62a">nars.entity.Stamp.make</a></div><div class="ttdeci">static Stamp make(Stamp first, Stamp second, long time)</div><div class="ttdoc">Try to merge two Stamps, return null if have overlap. </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d4f/Stamp_8java_source.html#l00119">Stamp.java:119</a></div></div>
<div class="ttc" id="classnars_1_1io_1_1Symbols_html"><div class="ttname"><a href="../../dc/d71/classnars_1_1io_1_1Symbols.html">nars.io.Symbols</a></div><div class="ttdoc">The ASCII symbols used in I/O. </div><div class="ttdef"><b>Definition:</b> <a href="../../d5/da0/Symbols_8java_source.html#l00026">Symbols.java:26</a></div></div>
<div class="ttc" id="namespacenars_1_1storage_html"><div class="ttname"><a href="../../de/ddc/namespacenars_1_1storage.html">nars.storage</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d6/dce/Bag_8java_source.html#l00021">Bag.java:21</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Stamp_ae51a072ee3f452580f4421f6dc6643ab_html_ae51a072ee3f452580f4421f6dc6643ab"><div class="ttname"><a href="../../d1/d1e/classnars_1_1entity_1_1Stamp_ae51a072ee3f452580f4421f6dc6643ab.html#ae51a072ee3f452580f4421f6dc6643ab">nars.entity.Stamp.Stamp</a></div><div class="ttdeci">Stamp(Stamp first, Stamp second, long time)</div><div class="ttdoc">Generate a new stamp for derived sentence by merging the two from parents the first one is no shorter...</div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d4f/Stamp_8java_source.html#l00089">Stamp.java:89</a></div></div>
<div class="ttc" id="classnars_1_1io_1_1Symbols_a6cad38feaf42bcf66200d6f94d6b64d9_html_a6cad38feaf42bcf66200d6f94d6b64d9"><div class="ttname"><a href="../../dc/d71/classnars_1_1io_1_1Symbols_a6cad38feaf42bcf66200d6f94d6b64d9.html#a6cad38feaf42bcf66200d6f94d6b64d9">nars.io.Symbols.STAMP_SEPARATOR</a></div><div class="ttdeci">static final char STAMP_SEPARATOR</div><div class="ttdef"><b>Definition:</b> <a href="../../d5/da0/Symbols_8java_source.html#l00089">Symbols.java:89</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Stamp_html"><div class="ttname"><a href="../../d1/d1e/classnars_1_1entity_1_1Stamp.html">nars.entity.Stamp</a></div><div class="ttdoc">Each Sentence has a time stamp, consisting the following components: (1) The creation time of the sen...</div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d4f/Stamp_8java_source.html#l00035">Stamp.java:35</a></div></div>
<div class="ttc" id="namespacenars_html"><div class="ttname"><a href="../../d7/d81/namespacenars.html">nars</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Stamp_ad1aee19cfc0bb8ca9232bad251f74ffc_html_ad1aee19cfc0bb8ca9232bad251f74ffc"><div class="ttname"><a href="../../d1/d1e/classnars_1_1entity_1_1Stamp_ad1aee19cfc0bb8ca9232bad251f74ffc.html#ad1aee19cfc0bb8ca9232bad251f74ffc">nars.entity.Stamp.toString</a></div><div class="ttdeci">String toString()</div><div class="ttdoc">Get a String form of the Stamp for display Format: {creationTime [: eventTime] : evidentialBase}. </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d4f/Stamp_8java_source.html#l00225">Stamp.java:225</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Stamp_a494ae48f7f54badc63ce355b7bfe2c1b_html_a494ae48f7f54badc63ce355b7bfe2c1b"><div class="ttname"><a href="../../d1/d1e/classnars_1_1entity_1_1Stamp_a494ae48f7f54badc63ce355b7bfe2c1b.html#a494ae48f7f54badc63ce355b7bfe2c1b">nars.entity.Stamp.evidentialBase</a></div><div class="ttdeci">long[] evidentialBase</div><div class="ttdoc">serial numbers </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d4f/Stamp_8java_source.html#l00042">Stamp.java:42</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Stamp_a55c3c692098386d513289a6f3787f590_html_a55c3c692098386d513289a6f3787f590"><div class="ttname"><a href="../../d1/d1e/classnars_1_1entity_1_1Stamp_a55c3c692098386d513289a6f3787f590.html#a55c3c692098386d513289a6f3787f590">nars.entity.Stamp.creationTime</a></div><div class="ttdeci">long creationTime</div><div class="ttdoc">creation time of the stamp </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d4f/Stamp_8java_source.html#l00046">Stamp.java:46</a></div></div>
<div class="ttc" id="classnars_1_1io_1_1Symbols_a1e0854a68bd5d3c6a4162e53e77a2c8e_html_a1e0854a68bd5d3c6a4162e53e77a2c8e"><div class="ttname"><a href="../../dc/d71/classnars_1_1io_1_1Symbols_a1e0854a68bd5d3c6a4162e53e77a2c8e.html#a1e0854a68bd5d3c6a4162e53e77a2c8e">nars.io.Symbols.STAMP_STARTER</a></div><div class="ttdeci">static final char STAMP_STARTER</div><div class="ttdef"><b>Definition:</b> <a href="../../d5/da0/Symbols_8java_source.html#l00090">Symbols.java:90</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Stamp_a104d2fa1a93819a00e5a1221710128c0_html_a104d2fa1a93819a00e5a1221710128c0"><div class="ttname"><a href="../../d1/d1e/classnars_1_1entity_1_1Stamp_a104d2fa1a93819a00e5a1221710128c0.html#a104d2fa1a93819a00e5a1221710128c0">nars.entity.Stamp.init</a></div><div class="ttdeci">static void init()</div><div class="ttdoc">Initialize the stamp mechanism of the system, called in Reasoner. </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d4f/Stamp_8java_source.html#l00146">Stamp.java:146</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Stamp_ace10b17e33839430469efd8af6da5135_html_ace10b17e33839430469efd8af6da5135"><div class="ttname"><a href="../../d1/d1e/classnars_1_1entity_1_1Stamp_ace10b17e33839430469efd8af6da5135.html#ace10b17e33839430469efd8af6da5135">nars.entity.Stamp.Stamp</a></div><div class="ttdeci">Stamp(Stamp old)</div><div class="ttdoc">Generate a new stamp identical with a given one. </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d4f/Stamp_8java_source.html#l00064">Stamp.java:64</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Stamp_ad6aa0763a0a78acae813ba456f533ad7_html_ad6aa0763a0a78acae813ba456f533ad7"><div class="ttname"><a href="../../d1/d1e/classnars_1_1entity_1_1Stamp_ad6aa0763a0a78acae813ba456f533ad7.html#ad6aa0763a0a78acae813ba456f533ad7">nars.entity.Stamp.Stamp</a></div><div class="ttdeci">Stamp(Stamp old, long time)</div><div class="ttdoc">Generate a new stamp from an existing one, with the same evidentialBase but different creation time...</div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d4f/Stamp_8java_source.html#l00077">Stamp.java:77</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Stamp_a153d2eafa2da60a2c768525f84e9169c_html_a153d2eafa2da60a2c768525f84e9169c"><div class="ttname"><a href="../../d1/d1e/classnars_1_1entity_1_1Stamp_a153d2eafa2da60a2c768525f84e9169c.html#a153d2eafa2da60a2c768525f84e9169c">nars.entity.Stamp.baseLength</a></div><div class="ttdeci">int baseLength</div><div class="ttdoc">evidentialBase baseLength </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d4f/Stamp_8java_source.html#l00044">Stamp.java:44</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Stamp_adb33cdf9f13e1a919f7220cb622e7446_html_adb33cdf9f13e1a919f7220cb622e7446"><div class="ttname"><a href="../../d1/d1e/classnars_1_1entity_1_1Stamp_adb33cdf9f13e1a919f7220cb622e7446.html#adb33cdf9f13e1a919f7220cb622e7446">nars.entity.Stamp.equals</a></div><div class="ttdeci">boolean equals(Object that)</div><div class="ttdoc">Check if two stamps contains the same content. </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d4f/Stamp_8java_source.html#l00193">Stamp.java:193</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Stamp_acb0b161e2d2fb0cbfb33b44ec2a29075_html_acb0b161e2d2fb0cbfb33b44ec2a29075"><div class="ttname"><a href="../../d1/d1e/classnars_1_1entity_1_1Stamp_acb0b161e2d2fb0cbfb33b44ec2a29075.html#acb0b161e2d2fb0cbfb33b44ec2a29075">nars.entity.Stamp.getCreationTime</a></div><div class="ttdeci">long getCreationTime()</div><div class="ttdoc">Get the creationTime of the truth-value. </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d4f/Stamp_8java_source.html#l00215">Stamp.java:215</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Stamp_a034905573fe14fb73ba09bfa360eb608_html_a034905573fe14fb73ba09bfa360eb608"><div class="ttname"><a href="../../d1/d1e/classnars_1_1entity_1_1Stamp_a034905573fe14fb73ba09bfa360eb608.html#a034905573fe14fb73ba09bfa360eb608">nars.entity.Stamp.clone</a></div><div class="ttdeci">Object clone()</div><div class="ttdoc">Clone a stamp. </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d4f/Stamp_8java_source.html#l00139">Stamp.java:139</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Stamp_a546d6921dc3e1e4a9d1b80bf7f0356b4_html_a546d6921dc3e1e4a9d1b80bf7f0356b4"><div class="ttname"><a href="../../d1/d1e/classnars_1_1entity_1_1Stamp_a546d6921dc3e1e4a9d1b80bf7f0356b4.html#a546d6921dc3e1e4a9d1b80bf7f0356b4">nars.entity.Stamp.get</a></div><div class="ttdeci">long get(int i)</div><div class="ttdoc">Get a number from the evidentialBase by index, called in this class only. </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d4f/Stamp_8java_source.html#l00163">Stamp.java:163</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Stamp_a7b5d3afaab9fc48e2d4d571b8508970d_html_a7b5d3afaab9fc48e2d4d571b8508970d"><div class="ttname"><a href="../../d1/d1e/classnars_1_1entity_1_1Stamp_a7b5d3afaab9fc48e2d4d571b8508970d.html#a7b5d3afaab9fc48e2d4d571b8508970d">nars.entity.Stamp.toSet</a></div><div class="ttdeci">Collection&lt; Long &gt; toSet()</div><div class="ttdoc">Convert the evidentialBase into a set. </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d4f/Stamp_8java_source.html#l00179">Stamp.java:179</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="../../dir_ed82ebcd34e530b246c6fd9032262140.html">aruntime</a></li><li class="navelem"><a class="el" href="../../dir_19496ddff8e6c0f2b6654287ecb1a472.html">src</a></li><li class="navelem"><a class="el" href="../../dir_db9c5934f797909f7296c2c2017f7fc9.html">main</a></li><li class="navelem"><a class="el" href="../../dir_6d74390eb6d6287951075e525bcb9bed.html">java</a></li><li class="navelem"><a class="el" href="../../dir_51a24984472456d47100350cd31f9a7c.html">nars</a></li><li class="navelem"><a class="el" href="../../dir_c3c9ea9f52870ae82b0fae20af0d9479.html">entity</a></li><li class="navelem"><a class="el" href="../../d8/d4f/Stamp_8java.html">Stamp.java</a></li>
    <li class="footer">Generated on Sun Jan 10 2016 18:03:58 for opennars by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.9.1 </li>
  </ul>
</div>
</body>
</html>
